package com.ruoyi.whzj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.whzj.mapper.WhTasksettingMapper;
import com.ruoyi.whzj.domain.WhTasksetting;
import com.ruoyi.whzj.service.IWhTasksettingService;
import com.ruoyi.common.core.text.Convert;

/**
 * 任务设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-15
 */
@Service
public class WhTasksettingServiceImpl implements IWhTasksettingService 
{
    @Autowired
    private WhTasksettingMapper whTasksettingMapper;

    /**
     * 查询任务设置
     * 
     * @param id 任务设置ID
     * @return 任务设置
     */
    @Override
    public WhTasksetting selectWhTasksettingById(String id)
    {
        return whTasksettingMapper.selectWhTasksettingById(id);
    }

    /**
     * 查询任务设置列表
     * 
     * @param whTasksetting 任务设置
     * @return 任务设置
     */
    @Override
    public List<WhTasksetting> selectWhTasksettingList(WhTasksetting whTasksetting)
    {
        return whTasksettingMapper.selectWhTasksettingList(whTasksetting);
    }

    /**
     * 新增任务设置
     * 
     * @param whTasksetting 任务设置
     * @return 结果
     */
    @Override
    public int insertWhTasksetting(WhTasksetting whTasksetting)
    {
        return whTasksettingMapper.insertWhTasksetting(whTasksetting);
    }

    /**
     * 修改任务设置
     * 
     * @param whTasksetting 任务设置
     * @return 结果
     */
    @Override
    public int updateWhTasksetting(WhTasksetting whTasksetting)
    {
        return whTasksettingMapper.updateWhTasksetting(whTasksetting);
    }

    /**
     * 删除任务设置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWhTasksettingByIds(String ids)
    {
        return whTasksettingMapper.deleteWhTasksettingByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除任务设置信息
     * 
     * @param id 任务设置ID
     * @return 结果
     */
    @Override
    public int deleteWhTasksettingById(String id)
    {
        return whTasksettingMapper.deleteWhTasksettingById(id);
    }
}
